﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using App.Model;

namespace App.Interface
{
    public interface IMyCaoZuo : IDependency
    {
        string CreateMyGongZuoJiHua(string username, string sssj);
        string GetMyGongZuoJiHuas(string username);
        string GetMyLiShiGongZuoJiHuas(string username);
        void UpdateMyGongZuoJiHua(string str);
        void DelMyKaoHeBiao(int khbid);
        string GetMyKaoHeBiaoInfo(int khbid);
        void UpdateTiJiaoKaoHeBiao(int khbid);
        string GetGongZuoJiHuas_Bymbid(int mbid);
        /// <summary>
        /// 通过审核
        /// </summary>
        /// <param name="username"></param>
        /// <param name="mkhbid"></param>
        void UpdateGongZuoJiHuaOK(string username, int mkhbid, string yijian);
        //void UpdateGongZuoJiHuaReject(int mkhbid);
        void UpdateGongZuoJiHuaRejectByusername(string username);
        void CreateLinShiGongZuo(string username,string gznr, string gzbz, int mkhbid);
        void DelLinShiGongZuo(int mkhbid, int twoid);
        void UploadFile(int mkhbid, int twoid, string guid, string v, string uploadtitle,string uploadfileHash);
        string GetFileList(int mkhbid, int twoid);
        void DelFile(int mkhbid, int twoid, int fjid);
        string getGongZuoChengDanRen(string username);
        string saveKaoHeNeiRongTow(string model, int mkhbid, int oneid, string username);
        void delKaoHeNeiRongTow(int towid, int mkhbid, int oneid, string username);
        void updateKaoHeNeiRongTow(string model, int mkhbid, int oneid, string username);
        string 获取没有分配周数的月工作计划(int khbid);
        string 获取已分配周数的周计划(int khbid,int 周数);
        void 生成单条周计划(int khbid, int twoid,int 周数);
        void 取消单条周计划(int khbid, int twoid, int 周数);
        /// <summary>
        /// 更新工作计划完成状态
        /// </summary>
        /// <param name="twoid"></param>
        /// <param name="flag"></param>
        void UpdateGongZuoJiHuaWanChengZhuangTai(int khbid, int twoid, bool flag);
        /// <summary>
        /// 获取工作总结集
        /// </summary>
        /// <param name="khbid"></param>
        /// <returns></returns>
        string GetYueGongZuoZongJie(int khbid);
        void delGongZuoJongJie(int khbid, int zjid);
        void saveZouZongJie(int zongjielx, string zongjielxstr, string zongjienr, int khbid);
        void updateGongZuoZongJie(int zongjielx, string zongjielxstr, string zongjienr, int khbid, int zjtowid);
        /// <summary>
        /// 提交考核表
        /// </summary>
        /// <param name="username"></param>
        /// <param name="khbid"></param>
        /// <returns></returns>
        string TiJiaoKaoHeBiao(string username, int khbid);
        /// <summary>
        /// 驳回考核表
        /// </summary>
        /// <returns></returns>
        string BoHuiKaoHeBiao(string username, int khbid);
        /// <summary>
        /// 通过考核表
        /// </summary>
        /// <returns></returns>
        string TongGuoKaoHeBiao(string username, int khbid);
        /// <summary>
        /// 撤回考核表
        /// </summary>
        /// <returns></returns>
        string CheHuiKaoHeBiao(string username, int khbid);
        /// <summary>
        /// 完成考核表
        /// </summary>
        /// <returns></returns>
        string WanChengKaoHeBiao(string username, int khbid);
        /// <summary>
        /// 驳回考核表
        /// </summary>
        /// <param name="v"></param>
        /// <param name="mkhbid"></param>
        /// <param name="yijian"></param>
        void UpdateGongZuoJiHuaTuiHui(string v, int mkhbid, string yijian);
    }
}
